# -*- coding: utf-8 -*-
class ResponseCode(object):
    Success = 200  # 成功
    Fail = -1  # 失败
    NoResourceFound = 40001  # 未找到资源
    InvalidParameter = 40002  # 参数无效
    DownloadResourceFail = 40003  # 下载资源失败
    UploadResourceFail = 40004  # 上传文件失败
    ReadResourceFail = 40005  # 读取文件失败
    PredictAPIFailed = 40006  # 预测接口存在未知错误
    PredictAPIDataFormatError = 40007  # 预测数据格式错误
    PredictAPINotExist = 40008  # 预测接口不存在
    PredictAPICreateError = 40009  # 预测接口创建失败
    PredictAPIReCreateError = 40010  # 预测接口重新创建失败
    FrequentOperation = 40011  # 预测接口重新创建失败
    PredictParamsNotFoundDiscrete = 40012  # 预测数据中离散特征值未找到最对应的数据
    DataBaseError = 40013  # 数据库使用失败
    WriteResultFail = 40014  # 写入文件失败


class ResponseMessage(object):
    Success = "成功"
    Fail = "失败"
    NoResourceFound = "未找到资源"
    InvalidParameter = "参数无效"
    DownloadResourceFail = "下载资源失败"
    UploadResourceFail = "上传文件失败"
    ReadResourceFail = '读取文件失败'
    PredictAPIFailed = "预测接口存在未知错误"
    PredictAPIDataFormatError = "预测数据格式错误"
    PredictAPINotExist = "预测接口不存在"
    PredictAPICreateError = "预测接口创建失败"
    PredictAPIReCreateError = "预测接口重新创建失败"
    FrequentOperation = "操作频繁,请稍后再试"
    PredictParamsNotFoundDiscrete = "预测数据中离散特征值未找到最对应的数据"
    DataBaseError = "数据库使用失败"
    WriteResultFail = "写入文件失败"

